﻿using System.Text.RegularExpressions;
namespace System.ComponentModel.DataAnnotations {
    public class EmailAttribute : RegularExpressionAttribute {
        public EmailAttribute()
            : base(@"^[\w-\.]{1,}\@([\w]{1,}\.){1,}[a-z]{2,4}$") {
        }
    }
}